// 12
package main

import (
	"fmt"
	"math"
)

func main() {
	i := 1
	for factorN(total(i)) < 500 {
		i++
	}
	fmt.Println(total(i))
}
func total(n int) int {
	s := 0
	for i := 1; i <= n; i++ {
		s += i
	}
	return s
}
func factorN(n int) int {
	if n < 2 {
		return 1
	}
	s, m := 0, int(math.Sqrt(float64(n)))
	for i := 1; i <= m; i++ {
		if n%i == 0 {
			s++
		}
	}
	s *= 2
	if m*m == n {
		return s - 1
	}
	return s
}
